import Taro, {useContext} from '@tarojs/taro'
import {Text, View} from '@tarojs/components'
import { ThemeContext } from './theme-context'
import { UserContext } from './user-context.js'

export default class Content extends Taro.Component {
  render () {
    const theme = useContext(ThemeContext)
    const user =  useContext(UserContext)
    return (
      <View>
        <Text>{user.name} </Text>
        <Text>{theme}</Text>
      </View>
    )
  }
}
